﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace iTaskService.Models
{
    public class Project
    {
        public int ProjectID { get; set; }
        public String Name { get; set; }
        public ProcessStatus Status { get; set; }
        public String Description { get; set; }
        public DateTime StartTime { get; set; }
        public DateTime EndTime { get; set; }

        public List<Task> Tasks { get; set; }
        public Account Owner { get; set; }

        public override string ToString()
        {
            return "Pro:" + Name;
        }
    }

    public enum ProjectStatus 
    {
        NotStarted=0,
        Active=1,
        Completed=2
    }
}